/*
 * @LastEditors: yuSeen
 * @LastEditTime: 2021-12-04 14:28:38
 * 角色-资源模型
 */
import { Table, Column, Model, ForeignKey } from 'sequelize-typescript'
import Resource from './resource'
import Role from './role'

@Table
export default class Role_Resource extends Model {
    @ForeignKey(() => Role)
    @Column
    role_id: number

    @ForeignKey(() => Resource)
    @Column
    resource_id: number
}